Skip to content

Conversation

@chungwwei
Copy link
Contributor

@chungwwei chungwwei commented Nov 25, 2025

Fixes: #1858

Still picture
narrow tap when long press press from app bar
Screenshot_1764735703 Screenshot_1764735680 Screenshot_1764735652
Screencasts

combined feed narrow

combined_feed_sc.mp4

channel narrow

channel_sc.mp4

mentions narrow

mention_sc.mp4

@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Nov 25, 2025
Copy link
Collaborator

@chrisbobbe chrisbobbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Comments below.

static Future<void> markNarrowAsRead(BuildContext context, Narrow narrow) async {
final zulipLocalizations = ZulipLocalizations.of(context);

if (narrow is CombinedFeedNarrow) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue asks for the dialog to be shown in more than just the combined-feed narrow: #1858 (comment)

@chungwwei chungwwei force-pushed the read-confirm-dialog branch from 1de2a51 to 970aee6 Compare December 2, 2025 21:19
@chungwwei
Copy link
Contributor Author

@chrisbobbe Thanks for reviewing!

Squash the 4 commits into one.

KeywordSearchNarrow was the other narrow. Was not looking at the code, but when i tested in the app, the Mark all messages as read button didn't appear in the search view when searched. Would you be okay with me filing a follow up issue for KeywordSearchNarrow?

@chungwwei chungwwei requested a review from chrisbobbe December 2, 2025 21:33
@chrisbobbe
Copy link
Collaborator

chrisbobbe commented Dec 2, 2025

KeywordSearchNarrow was the other narrow.

That's not accurate. We should show the dialog when the narrow is not a conversation narrow. A "conversation narrow" is a topic narrow or a DM narrow; see e.g. the top of the Zulip Help Center "Reading conversations" article. These details are provided for you in the issue description and discussions linked from there.

In the zulip-flutter codebase, there are multiple kinds of Narrow other than TopicNarrow and DmNarrow. CombinedFeedNarrow and KeywordSearchNarrow are just two of those.

@chungwwei chungwwei force-pushed the read-confirm-dialog branch 2 times, most recently from f51a3f4 to 9b5a5e3 Compare December 3, 2025 02:13
A confirm ActionDialog is added to prevent accidentally marking many
messages as read in CombinedFeedNarrow view.

Also, adjust existing MarkAsReadWidget tests to account for the
added confirmation dialog.

Fixes: part of zulip#1858
Added dialog to prevent accidentally marking many messages as read
in ChannelNarrow View.

Also, adjust existing MarkChannelAsReadButton tests to account for
the added confirmation dialog.

Fixes: part of zulip#1858
@chungwwei chungwwei force-pushed the read-confirm-dialog branch 2 times, most recently from f900adb to f6a1cee Compare December 3, 2025 04:32
@chungwwei chungwwei force-pushed the read-confirm-dialog branch from f6a1cee to 712aa85 Compare December 3, 2025 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get confirmation before marking an interleaved feed as unread

3 participants